package com.example.soa_exp2.Service;

import com.example.soa_exp2.Domain.Borrow;

import java.util.Date;
import java.util.List;

public interface BorrowService {

    List<Borrow> getBorrowList();

    Borrow getBorrowById(int id);

    List<Borrow> getBorrowByGoodsId(String id);

    List<Borrow> getBorrowByGoodsName(String name);

    List<Borrow> getBorrowByStuId(String stu_id);

    List<Borrow> getBorrowByStuName(String stu_name);

    int updateBorrowStatus(int id);

    int addBorrow(Borrow borrow);

    List<Borrow> getBorrowByTime(String date);

    List<Borrow> getBorrowByTime(String date_min, String date_max);
}
